"""
    @Author  ：思念 
    @File    ：7.页面的前进与后退.py
    @Date    ：2025/3/26 15:27 
"""
import time
from selenium import webdriver

driver = webdriver.Chrome()
driver.get("https://www.baidu.com")
time.sleep(2)
driver.get("https://www.jd.com")
time.sleep(2)
driver.back()
time.sleep(2)
driver.forward()
time.sleep(2)
driver.quit()